﻿using System.Web;
using System.Web.Optimization;

namespace Superstore.Store
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/ajaxRequestHelper.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/jsPackage").Include(
                        "~/Scripts/storageTool.js",
                        "~/Scripts/common.js",
                        "~/Scripts/addressMgr.js",
                        "~/Scripts/terminalMgr.js",
                        "~/Scripts/goodsMgr.js",
                        "~/Scripts/promotionMgr.js",
                        "~/Scripts/shoppingMgr.js",
                        "~/Scripts/userInfoMgr.js",
                        "~/Scripts/deliveryAddrMgr.js",
                        "~/Scripts/otherMgr.js",
                        "~/Scripts/orderMgr.js",
                        "~/Scripts/serviceNotifyMgr.js",
                        "~/Scripts/deliveryAddrTool.js"));

            bundles.Add(new ScriptBundle("~/bundles/selectTimeHelper").Include(
                        "~/Scripts/selectTimeHelper.js"));

            bundles.Add(new ScriptBundle("~/bundles/selectCityHelper").Include(
                        "~/Scripts/selectCityHelper.js"));

            bundles.Add(new StyleBundle("~/Content/css/business").Include(
                "~/Content/css/personal/reset.css",
                "~/Content/css/personal/common.css",
                "~/Content/css/head/normalTitle.css"));


            bundles.Add(new StyleBundle("~/Content/css/addAddress").Include(
                "~/Content/css/business/addAddress.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/Content/css/chooseAddress").Include(
                "~/Content/css/business/chooseAddress.css",
                "~/Content/css/business/common.css",
                "~/Content/css/head/normalTitle.css"));

            bundles.Add(new StyleBundle("~/Content/css/addressManage").Include(
                "~/Content/css/business/addressManage.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/Content/css/feedback").Include(
                "~/Content/css/business/feedback.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/content/css/about").Include(
                "~/content/css/business/about.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/personal/common.css",
                "~/Content/css/personal/reset.css"));

            bundles.Add(new StyleBundle("~/content/css/serviceProtocol").Include(
                "~/content/css/business/about.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/personal/serviceProtocol.css",
                "~/Content/css/personal/common.css",
                "~/Content/css/personal/reset.css"));

            bundles.Add(new StyleBundle("~/Content/css/searchVending").Include(
                "~/Content/css/business/searchVending.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/Content/css/chooseVending").Include(
                "~/Content/css/business/chooseVending.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/Content/css/orderDetails").Include(
                "~/Content/css/business/orderDetails.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/Content/css/userInfo").Include(
                "~/Content/css/business/userInfo.css",
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/business/common.css"));

            bundles.Add(new StyleBundle("~/Content/css/personal").Include(
                "~/Content/css/business/reset-h5.css"));

            bundles.Add(new StyleBundle("~/Content/css/preLoaction").Include(
                "~/content/css/business/preLoaction.css",
                "~/Content/css/personal/common.css",
                "~/Content/css/personal/reset.css"));

            bundles.Add(new StyleBundle("~/Content/css/mineOrder").Include(
                "~/Content/css/head/normalTitle.css",
                "~/Content/css/personal/common.css",
                "~/Content/css/personal/reset.css"));

            bundles.Add(new StyleBundle("~/Content/css/disablePage").Include(
                "~/Content/css/personal/reset.css",
                "~/Content/css/personal/common.css",
                "~/Content/css/head/disableTitle.css"));
        }
    }
}
